home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 66
/
Vol 66.iso
/
games
/
datedres.swf
/
scripts
/
frame_4
/
DoAction.as
Wrap
Text File
|
2013-04-24
|
13KB
|
483 lines
stop();
Mouse.show();
so2.start();
back_frame = 4;
newmenu_set();
ava_makeup_int();
set_menu();
makeup_apply();
ava_dress_re();
Mouse.removeListener(mouse_up);
Mouse.removeListener(mouse_down);
ava_end.ava_makeup_face.select_color = 1;
ava_end.makeup_eyeline0.select_color = 1;
ava_end.makeup_eyeline1.select_color = 1;
ava_end.ava_lip.select_color = 1;
hand_show = function()
{
var _l1 = this;
makeup_hand.onEnterFrame = function()
{
var _l1 = this;
_l1._x = _root._xmouse;
_l1._y = _root._ymouse;
if(_l1._y < 165 && _l1._x > 220)
{
_l1._visible = false;
Mouse.show();
}
else if(_l1._y > 320)
{
_l1._visible = true;
Mouse.hide();
}
};
};
makeup_pad.onRelease = function()
{
so2.start();
mas_close();
makeup_set.gotoAndStop(2);
s_makeup = 0;
powder_cmaker();
makeup_hand.gotoAndStop(1);
hand_show();
};
makeup_pad.onRollOver = function()
{
this.gotoAndPlay(2);
so2.start();
makeup_hand._visible = false;
Mouse.show();
};
makeup_pad.onRollOut = function()
{
this.gotoAndStop(1);
if(s_makeup == 0)
{
Mouse.hide();
makeup_hand.gotoAndStop(1);
makeup_hand._visible = true;
}
};
mouse_down = new Object();
mouse_down.onMouseDown = function()
{
var _l1 = _root;
if(s_makeup == 0)
{
if(_l1._xmouse > 20 && _l1._xmouse < 220 && (_l1._ymouse > 145 && _l1._ymouse < 400))
{
so6.start();
makeup_hand.powder.gotoAndPlay(2);
if(ava_end.ava_makeup_face._currentframe != ava_end.ava_makeup_face.select_color)
{
ava_end.ava_makeup_face.gotoAndStop(ava_end.ava_makeup_face.select_color);
ava_end.ava_makeup_face._alpha = 0;
}
if(ava_end.ava_makeup_face._alpha < 100)
{
ava_end.ava_makeup_face._alpha += 10;
ava_makeups[0] = ava_end.ava_makeup_face._alpha;
}
else
{
ava_end.ava_makeup_face._alpha = 100;
ava_makeups[0] = ava_end.ava_makeup_face._alpha;
}
}
}
else if(s_makeup == 1)
{
if(_l1._xmouse > 40 && _l1._xmouse < 250 && (_l1._ymouse > 150 && _l1._ymouse < 300))
{
so6.start();
makeup_hand.back.gotoAndPlay(2);
if(ava_end.makeup_eyeline0._currentframe != ava_end.makeup_eyeline0.select_color)
{
ava_end.makeup_eyeline0.gotoAndStop(ava_end.makeup_eyeline0.select_color);
ava_end.makeup_eyeline0._alpha = 0;
}
if(ava_end.makeup_eyeline0._alpha < 100)
{
ava_end.makeup_eyeline0._alpha += 10;
ava_makeups[4] = ava_end.makeup_eyeline0._alpha;
}
else
{
ava_end.makeup_eyeline0._alpha = 100;
ava_makeups[4] = ava_end.makeup_eyeline0._alpha;
}
}
}
else if(s_makeup == 2)
{
if(_l1._xmouse > 40 && _l1._xmouse < 250 && (_l1._ymouse > 150 && _l1._ymouse < 300))
{
so6.start();
makeup_hand.point.gotoAndPlay(2);
if(ava_end.makeup_eyeline1._currentframe != ava_end.makeup_eyeline1.select_color)
{
ava_end.makeup_eyeline1.gotoAndStop(ava_end.makeup_eyeline1.select_color);
ava_end.makeup_eyeline1._alpha = 0;
}
if(ava_end.makeup_eyeline1._alpha < 100)
{
ava_end.makeup_eyeline1._alpha += 10;
ava_makeups[3] = ava_end.makeup_eyeline1._alpha;
}
else
{
ava_end.makeup_eyeline1._alpha = 100;
ava_makeups[3] = ava_end.makeup_eyeline1._alpha;
}
}
}
else if(s_makeup == 3)
{
if(_l1._xmouse > 70 && _l1._xmouse < 200 && (_l1._ymouse > 240 && _l1._ymouse < 370))
{
so6.start();
if(ava_end.ava_lip._currentframe != ava_end.ava_lip.select_color)
{
ava_end.ava_lip.gotoAndStop(ava_end.ava_lip.select_color);
ava_end.ava_lip._alpha = 0;
}
makeup_hand.lips.gotoAndPlay(2);
if(ava_end.ava_lip._alpha < 100)
{
ava_end.ava_lip._alpha += 10;
ava_makeups[1] = ava_end.ava_lip._alpha;
}
else
{
ava_end.ava_lip._alpha = 100;
ava_makeups[1] = ava_end.ava_lip._alpha;
}
}
}
else if(s_makeup == 4)
{
if(_l1._xmouse > 40 && _l1._xmouse < 280 && (_l1._ymouse > 150 && _l1._ymouse < 300))
{
so6.start();
if(ava_end.mas._currentframe < 6)
{
ava_end.mas.nextFrame();
ava_makeups[2] = ava_end.mas._currentframe;
}
makeup_hand.mas.gotoAndPlay(2);
}
}
else if(s_makeup == 5)
{
makeup_hand.eraser.gotoAndPlay(2);
if(e_num_flag == 0)
{
if(_l1._xmouse > 20 && _l1._xmouse < 220 && (_l1._ymouse > 145 && _l1._ymouse < 300))
{
so6.start();
if(ava_end.ava_makeup_face._alpha > 0)
{
ava_end.ava_makeup_face._alpha -= 10;
ava_makeups[0] = ava_end.ava_makeup_face._alpha;
}
else
{
ava_end.ava_makeup_face._alpha = 0;
ava_makeups[0] = ava_end.ava_makeup_face._alpha;
}
}
}
else if(e_num_flag == 4)
{
if(_l1._xmouse > 40 && _l1._xmouse < 250 && (_l1._ymouse > 150 && _l1._ymouse < 250))
{
so6.start();
if(ava_end.makeup_eyeline0._alpha > 0)
{
ava_end.makeup_eyeline0._alpha -= 10;
ava_makeups[4] = ava_end.makeup_eyeline0._alpha;
}
else
{
ava_end.makeup_eyeline0._alpha = 0;
ava_makeups[4] = ava_end.makeup_eyeline0._alpha;
}
}
}
else if(e_num_flag == 2)
{
if(_l1._xmouse > 40 && _l1._xmouse < 190 && (_l1._ymouse > 150 && _l1._ymouse < 250))
{
so6.start();
ava_end.mas.prevFrame();
ava_makeups[2] = ava_end.mas._currentframe;
}
}
else if(e_num_flag == 3)
{
if(_l1._xmouse > 40 && _l1._xmouse < 250 && (_l1._ymouse > 150 && _l1._ymouse < 250))
{
so6.start();
if(ava_end.makeup_eyeline1._alpha > 0)
{
ava_end.makeup_eyeline1._alpha -= 10;
ava_makeups[3] = ava_end.makeup_eyeline1._alpha;
}
else
{
ava_end.makeup_eyeline1._alpha = 0;
ava_makeups[3] = ava_end.makeup_eyeline1._alpha;
}
}
}
else if(e_num_flag == 1)
{
if(_l1._xmouse > 70 && _l1._xmouse < 200 && (_l1._ymouse > 240 && _l1._ymouse < 370))
{
so6.start();
if(ava_end.ava_lip._alpha > 0)
{
ava_end.ava_lip._alpha -= 10;
ava_makeups[1] = ava_end.ava_lip._alpha;
}
else
{
ava_end.ava_lip._alpha = 0;
ava_makeups[1] = ava_end.ava_lip._alpha;
}
}
}
}
};
Mouse.addListener(mouse_down);
makeup_lip_bt.onRollOver = function()
{
this.gotoAndPlay(2);
so2.start();
makeup_hand._visible = false;
Mouse.show();
};
makeup_lip_bt.onRollOut = function()
{
this.gotoAndStop(1);
if(s_makeup != undefined)
{
makeup_hand._visible = true;
Mouse.hide();
}
};
makeup_lip_bt.onRelease = function()
{
so2.start();
mas_close();
makeup_set.gotoAndStop(3);
makeup_hand.gotoAndStop(4);
s_makeup = 3;
powder_cmaker();
hand_show();
};
makeup_mas_bt.onRollOver = function()
{
so2.start();
this.gotoAndPlay(2);
so3.start();
makeup_hand._visible = false;
Mouse.show();
};
makeup_mas_bt.onRollOut = function()
{
this.gotoAndStop(1);
if(s_makeup != undefined)
{
makeup_hand._visible = true;
Mouse.hide();
}
};
makeup_mas_bt.onRelease = function()
{
so2.start();
mas_close();
makeup_set.gotoAndStop(1);
makeup_hand.gotoAndStop(5);
s_makeup = 4;
hand_show();
};
makeup_eyeline0_bt.onRollOver = function()
{
this.gotoAndPlay(2);
so2.start();
makeup_hand._visible = false;
Mouse.show();
};
makeup_eyeline0_bt.onRollOut = function()
{
this.gotoAndStop(2);
if(s_makeup != undefined)
{
makeup_hand._visible = true;
Mouse.hide();
}
};
makeup_eyeline0_bt.onRelease = function()
{
so2.start();
mas_close();
makeup_set.gotoAndStop(4);
makeup_hand.gotoAndStop(2);
s_makeup = 1;
powder_cmaker();
hand_show();
};
makeup_eyeline1_bt.onRollOver = function()
{
this.gotoAndPlay(2);
so2.start();
makeup_hand._visible = false;
Mouse.show();
};
makeup_eyeline1_bt.onRollOut = function()
{
this.gotoAndStop(2);
if(s_makeup != undefined)
{
makeup_hand._visible = true;
Mouse.hide();
}
};
makeup_eyeline1_bt.onRelease = function()
{
so2.start();
mas_close();
makeup_set.gotoAndStop(4);
makeup_hand.gotoAndStop(3);
s_makeup = 2;
powder_cmaker();
hand_show();
};
mas_close = function()
{
if(mas_open_flag)
{
so2.start();
mas_open_flag = false;
ava_mas_pad.gotoAndPlay(11);
}
epad_close();
};
epad_close = function()
{
if(e_open_flag)
{
so9.start();
e_open_flag = false;
makeup_erase_pad.gotoAndPlay(11);
}
};
powder_cmaker = function()
{
var _l1 = this;
var _l3 = _root;
var _l2 = 0;
while(_l2 < 6)
{
if(s_makeup == 0)
{
_l3.makeup_set["ava_face_c" + _l2].onRelease = function()
{
ava_end.ava_makeup_face.select_color = parseInt(this._name.slice(10,11)) + 2;
makeup_hand.powder.m.gotoAndStop(parseInt(this._name.slice(10,11)) + 2);
};
}
else if(s_makeup == 1 || s_makeup == 2)
{
_l3.makeup_set["ava_mas_c" + _l2].onRelease = function()
{
var _l1 = this;
if(s_makeup == 1)
{
ava_end.makeup_eyeline0.select_color = parseInt(_l1._name.slice(9,10)) + 2;
makeup_hand.back.m.gotoAndStop(parseInt(_l1._name.slice(9,10)) + 1);
}
if(s_makeup == 2)
{
ava_end.makeup_eyeline1.select_color = parseInt(_l1._name.slice(9,10)) + 2;
makeup_hand.point.m.gotoAndStop(parseInt(_l1._name.slice(9,10)) + 1);
}
};
}
else if(s_makeup == 3)
{
_l3.makeup_set["ava_lip_c" + _l2].onRelease = function()
{
ava_end.ava_lip.select_color = parseInt(this._name.slice(9,10)) + 1;
makeup_hand.lips.m.gotoAndStop(parseInt(this._name.slice(9,10)) + 1);
};
}
_l2++;
}
};
var e_open_flag = false;
e_open.onRelease = function()
{
if(!e_open_flag)
{
e_open_flag = true;
makeup_erase_pad.gotoAndPlay(2);
}
else
{
e_open_flag = false;
makeup_erase_pad.gotoAndPlay(11);
}
if(mas_open_flag)
{
mas_open_flag = false;
ava_mas_pad.gotoAndPlay(11);
}
};
e_open.onRollOver = function()
{
so2.start();
makeup_hand._visible = false;
Mouse.show();
};
e_open.onRollOut = function()
{
if(s_makeup != undefined)
{
makeup_hand._visible = true;
Mouse.hide();
}
};
var e_num_flag;
var i = 0;
while(i < 5)
{
_root.makeup_erase_pad.e_pad["e_pad" + i].onRelease = function()
{
mas_close();
s_makeup = 5;
e_num_flag = this._name.slice(5,6);
e_open_flag = false;
makeup_erase_pad.gotoAndPlay(11);
makeup_hand.gotoAndStop(6);
hand_show();
};
_root.makeup_erase_pad.e_pad["e_pad" + i].onRollOver = function()
{
makeup_hand._visible = false;
Mouse.show();
};
_root.makeup_erase_pad.e_pad["e_pad" + i].onRollOut = function()
{
if(s_makeup != undefined)
{
makeup_hand._visible = true;
Mouse.hide();
}
};
i++;
}